package com.zhoug.android.recyclerview;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.zhoug.android.R;


/**
 * 无数据View的简单实现
 * @Author 35574
 * @Date 2021/3/3
 * @Description
 */
public  class SimpleEmptyView extends EmptyView{


    @Override
    public View getEmptyView(ViewGroup parent) {
        TextView textView= (TextView) LayoutInflater.from(parent.getContext()).inflate(R.layout.zg_list_empty_view,parent,false);
        textView.setText(getEmptyText());
        return textView;
    }


}
